﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Emoney.UserTraining.Model;
using NHibernate;
using NHibernate.Linq;

namespace Emoney.UserTraining.DAL
{
    public class EMweb_newContext : DataContext
    {
        public EMweb_newContext() : base("emweb_new.cfg.xml") { }

        public IQueryable<Web_TrainAdmin> UserInfoS
        {
            get
            {
                return Session.Query<Web_TrainAdmin>();
            }
        }
        public IQueryable<Web_TrainPlace> web_TrainPlaceS
        {
            get
            {
                return Session.Query<Web_TrainPlace>();
            }
        }
        public IQueryable<Web_TrainUser> web_TrainUserS
        {
            get
            {
                return Session.Query<Web_TrainUser>();
            }
        }
    }
}
